﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ABCTile.Models
{
    public class Manufacture
    {
        [Display(Name = "Manufacture ID")]
        public Int32 ManufactureID { get; set; }

        [Required(ErrorMessage = "Name is required")]
        public string Name{ get; set; }

        [Required(ErrorMessage = "Street is required")]
        public string Street { get; set; }

        [Required(ErrorMessage = "City is required")]
        public string City { get; set; }

        [Required(ErrorMessage = "Zip is required")]
        public string Zip { get; set; }

        [Required(ErrorMessage = "State is required")]
        public string State { get; set; }

        public virtual ICollection<Tile> Tiles { get; set; }
        public virtual ICollection<Vendor> Vendors { get; set; }
    }
}